package homework.api04;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) {
        MyArrayList<String> myArrayList =new MyArrayList<>();
        myArrayList.add("one");
        myArrayList.add("two");
        myArrayList.add("three");
        myArrayList.add("four");
        myArrayList.add("one");
        myArrayList.add("two");
        myArrayList.add("three");
        myArrayList.add("four");
        myArrayList.add("one");
        myArrayList.add("two");
        myArrayList.add("three");
        myArrayList.add("four");
        myArrayList.add("one");
        myArrayList.add("two");
        myArrayList.add("three");
        myArrayList.add("four");
        System.out.println(myArrayList.get(0));
        myArrayList.set(1,"eleven");
        System.out.println(myArrayList.toString());
        System.out.println(myArrayList.get(1));
        System.out.println(myArrayList.set(2,"5555"));




    }
}
